<?php

return [

    // ----------------------- 菜单配置 ----------------------- //
    'config' => [
        // 菜单配置
        'menu' => [
            'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
            'icon' => 'fa fa-puzzle-piece',
            'pattern' => [], // 可见开发模式 b2c、b2b2c、saas 不填默认全部可见
        ],
        // 子模块配置
        'modules' => [
        ],
    ],

    // ----------------------- 快捷入口 ----------------------- //

    'cover' => [

    ],

    // ----------------------- 菜单配置 ----------------------- //

    'menu' => [
        [
            'title' => '采购管理',
            'route' => 'productConfig',
            'icon' => 'fa fa-ambulance',
            'child' => [
                [
                    'title' => '采购订单',
                    'route' => 'procure/index'
                ],
                [
                    'title' => '采购审核',
                    'route' => 'procure/order'
                ],
                [
                    'title' => '入库单管理',
                    'route' => 'laidup/index',
                ],
                [
                    'title' => '入库审核',
                    'route' => 'base/spec/index',
                ],
            ]
        ],
        [
            'title' => '仓库管理',
            'icon' => 'fa fa-pencil',
            'route' => 'store/index'
        ],
        [
            'title' => '供应商管理',
            'route' => 'supplier/index'
        ],
        [
            'title' => '商品管理',
            'route' => 'productConfig',
            'icon' => 'fa fa-shopping-basket',
            'child' => [
                [
                    'title' => '商品分类',
                    'route' => 'cate/index',
                ],
                [
                    'title' => '商品列表',
                    'route' => 'product/index',
                ],
                [
                    'title' => '商品单位',
                    'route' => 'unit/index',
                ],
            ]
        ],
    ],

    // ----------------------- 权限配置 ----------------------- //

    'authItem' => [
        [
            'title' => '所有权限',
            'name' => '*',
        ],
    ],
];
